好啦~
這一天總是要來的
幫大家摘要一下
⚠️⚠️⚠️就是跟以前不一樣的⚠️⚠️⚠️
☘️☘️☘️就是類似的或替代品☘️☘️☘️
Navigator.push
只能
在Flex裡使用Android | iOS | Flutter |
---|---|---|
TextView | UILabel | Text |
EditText | UITextField | TextField |
Android | iOS | Flutter |
---|---|---|
Button | UIButton | RawMaterialButton |
Dialog | UIAlertController | AlertDialog |
Android | iOS | Flutter |
---|---|---|
ImageView | UIImageView | Image |
Bitmap | UIImage | ImageProvider |
ScaleType | UIViewContentMode | BoxFit |
Android | iOS | Flutter(Material) | Flutter(Cupertino) |
---|---|---|---|
Spinner | UIPickerView | showBottomSheet | CupertinoActionSheet |
DatePickerDialog | UIDatePicker | showDatePicker/showTimePicker | CupertinoDatePicker |
Android | iOS | Flutter |
---|---|---|
ListView | UITableView static cell | ListView use children |
RecycleView | UITableView dynamic cell | ListView.builder |
Android | iOS | Flutter |
---|---|---|
RecycleView(set GridLayoutManager) | UICollectionView | GridView |
Android | iOS | Flutter |
---|---|---|
BottomNavigationView | UITabBarController | BottomNavigationBar |
TabbedActivity | 看套件叫什麼它就叫什麼 | TabController |
![][https://i.imgur.com/lCg6cWh.gif]
iOS | Android | Flutter |
---|---|---|
init | onCreate | createState |
viewDidLoad | initState | |
viewWillAppear | onStart | 這個沒有真的滿傷的⚠️⚠️⚠️ |
viewDidLayoutSubviews | build | |
viewDidAppear | onResume | |
viewWillDisappear | onPause | |
viewDidDisappear | onStop | |
removeFromSuperview | deactivate | |
deinit | onDestroy | dispose |
WillEnterForeground | onRestart | |
DidBecomeActive | onStart | resumed |
WillResignActive | onPause | 這個沒有對金融業也滿傷的⚠️⚠️⚠️ |
DidEnterBackground | onStop | paused |
popUntil
Zonble
大大有趣的side projectiOS、Android、Flutter超級比一比
」主題